# 数字类型------------------------------------------------------------------------------------
# 整数
int_ = 1
# 浮点数-小数
float_ = 1.1
# 复数(complex)-下面3为实部(real),4为虚部(imag),虚部以j或J结尾
"""
    complex1=a+bj
    complex2=c+dj
    complex1+complex==(a+b)+(b+d)j
    complex1-complex==(a-b)+(b-d)j
    complex1*complex==(ac-bd)+(bc+ad)j
    complex1/complex2=(ac+bd)/(c*c+d*d) + (bc-ad)/(c*c+d*d)j
"""
complex_1 = 1 + 2j
complex_2 = 3 + 4j
print("{}+{}={}".format(complex_1, complex_2, complex_1 + complex_2))
print("{}-{}={}".format(complex_1, complex_2, complex_1 - complex_2))
print("{}*{}={}".format(complex_1, complex_2, complex_1 * complex_2))
print("{}/{}={}".format(complex_1, complex_2, complex_1 / complex_2))
# 布尔(bool)-Ture记作1，False记作0------------------------------------------------------------
bool_1 = True
bool_2 = False
# 字符串类型(string)--------------------------------------------------------------------------
str_ = "qqq"
# 列表类型(list)有序的可变序列,最频繁的数据类型，可有序记录一堆数据
list_ = [1, 2]
# 元组类型(tuple)-----------------------------------------------------------------------------
tuple_1 = (1, 2)
tuple_2 = 1, 2
# 集合类型(set) 不重复、无序不能使用set_[1]
set_ = {9, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1}
print(set_)
# 字典类型(dictionary)------------------------------------------------------------------------
dic = {"name": "chen"}
print(dic["name"])
